package org.dtrd.modules.tool.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.dtrd.modules.tool.entity.po.DtrdEntRdTools;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiao
 * @since 2022-05-25
 */
@Getter
@Setter
@ApiModel(value = "列表信息", description = "")
@NoArgsConstructor
public class ToolsListInfo {

    private Integer dataId;

    @ApiModelProperty("工具名称")
    private String name;

    @ApiModelProperty("所属分类")
    private String categoryName;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("相关知识-文本")
    private String knowledgeText;

    @ApiModelProperty("相关知识-图片")
    private String knowledgeImg;

    @ApiModelProperty("工具列表")
    private List<ToolsListInfo> list;

    @ApiModelProperty("页面类型")
    private Integer pageType;

    public ToolsListInfo (DtrdEntRdTools po) {
        dataId = po.getDataId();
        name = po.getName();
        categoryName = po.getCategoryName();
        icon = po.getIcon();
        knowledgeText = po.getKnowledgeText();
        knowledgeImg = po.getKnowledgeImg();
        pageType = po.getPageType();
    }
}
